﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System.Reflection;

namespace Fulcrum.DispatcherProxies
{
    public class DispatcherProxyMethodInfo: DispatcherProxyInstanceMemberInfo
    {
        public DispatcherProxyMethodInfo(MethodInfo method, bool isNewMethod)
            : base(method, isNewMethod)
        {
            this.Method = method;
        }

        public MethodInfo Method
        {
            get;
            private set;
        }

        public bool RequiresOverride
        {
            get
            {
                return ReflectionHelp.IsOverrideMethod(this.Method);
            }
        }
    }
}
